package com.bjc.principle.bridage;

/**
 * @program: DesignPattern
 * @description:
 * @author: bjc
 * @create: 2020-12-23 21:26
 */
public class Test {

    public static void main(String[] args) {
        //苹果笔记本
        Computer laptop = new Laptop(new Apple());
        //联想台式机
        Computer desktop = new Desktop(new Lenovo());
        laptop.info();
        desktop.info();
    }
}
